import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { QRScannerModal } from './qr-scanner';
import { QRScanner } from '@ionic-native/qr-scanner/ngx';
import { ClosePopupComponentModule } from '@components/close-popup/close-popup.module';
import { SharedModule } from '../../shared/shared.module';
import { RouterModule } from '@angular/router';

@NgModule({
  declarations: [
    QRScannerModal,
  ],
  imports: [
    ClosePopupComponentModule,
    SharedModule,
    RouterModule.forChild([{ path: '', component: QRScannerModal }]),
  ],
  schemas: [CUSTOM_ELEMENTS_SCHEMA],
  providers: [QRScannerModal, QRScanner]
})
export class QRScannerModalModule {}
